package com.dkd.easybook.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dkd.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dkd.easybook.mapper.EbIconsMapper;
import com.dkd.easybook.domain.EbIcons;
import com.dkd.easybook.service.IEbIconsService;

/**
 * 用户图标Service业务层处理
 * 
 * @author itheima
 * @date 2024-12-12
 */
@Service
public class EbIconsServiceImpl extends ServiceImpl<EbIconsMapper, EbIcons> implements IEbIconsService
{
    @Autowired
    private EbIconsMapper ebIconsMapper;

    /**
     * 查询用户图标
     * 
     * @param iconId 用户图标主键
     * @return 用户图标
     */
    @Override
    public EbIcons selectEbIconsByIconId(Long iconId)
    {
        return ebIconsMapper.selectEbIconsByIconId(iconId);
    }

    /**
     * 查询用户图标列表
     * 
     * @param ebIcons 用户图标
     * @return 用户图标
     */
    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<EbIcons> selectEbIconsList(EbIcons ebIcons)
    {
        return ebIconsMapper.selectEbIconsList(ebIcons);
    }

    /**
     * 新增用户图标
     * 
     * @param ebIcons 用户图标
     * @return 结果
     */
    @Override
    public int insertEbIcons(EbIcons ebIcons)
    {
        return ebIconsMapper.insertEbIcons(ebIcons);
    }

    /**
     * 修改用户图标
     * 
     * @param ebIcons 用户图标
     * @return 结果
     */
    @Override
    public int updateEbIcons(EbIcons ebIcons)
    {
        return ebIconsMapper.updateEbIcons(ebIcons);
    }

    /**
     * 批量删除用户图标
     * 
     * @param iconIds 需要删除的用户图标主键
     * @return 结果
     */
    @Override
    public int deleteEbIconsByIconIds(Long[] iconIds)
    {
        return ebIconsMapper.deleteEbIconsByIconIds(iconIds);
    }

    /**
     * 删除用户图标信息
     * 
     * @param iconId 用户图标主键
     * @return 结果
     */
    @Override
    public int deleteEbIconsByIconId(Long iconId)
    {
        return ebIconsMapper.deleteEbIconsByIconId(iconId);
    }
}
